//
//  Util.h
//  TBRJL
//
//  Created by 程三 on 15/6/20.
//  Copyright (c) 2015年 程三. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@interface Util : NSObject

+(void)setObject:(NSObject *)object key:(NSString *)key;
+(NSObject *)getValue:(NSString *)key;
+(void)setBool:(BOOL)b key:(NSString *)key;
+(BOOL)boolForkey:(NSString *)key;


//对象序列化成字符串
+ (NSString*)objectToJson:(NSObject *)object;

#pragma mark 计算内容的高度
+(CGSize)getSizeWithString:(NSString *)content textSize:(float)size width:(float)width;


//#pragma mark 获取网络状态 0:没有网 1:WI-FI 2:手机移动网
+(int)getNetState;
@end
